function reverse(array) {
    for (let index = 0; index < array.length; index++) {
        array.splice(index, 0, array.pop())
    }
    return array
}

export default reverse